package com.lagou.rpc.consumer.config;

import com.lagou.rpc.api.IUserService;
import com.lagou.rpc.consumer.proxy.RpcClientProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Authther: mrwu
 * @date:2021/4/6-04
 * @Description:com.lagou.rpc.consumer.config
 */
@Configuration
public class ClientConfig {

    @Bean
    public IUserService iUserService(){
        return (IUserService)RpcClientProxy.createProxy(IUserService.class);
    }

}
